<div id="container-wrapper">
    <div id="container1">
        <div class="wrapper-inner">
            <div class="left-70" >                                                    
                <div class="wrapper-row">
                    <div class="muc line-height33" > Mô tả </div>				
                    <div class="left " style="width:250px;float:left;height:250px;color:#47639E;" >
					<?php echo ' <img id="ct_sach" src="data:image/jpeg;base64,' . base64_encode($sach->hinhanh) . '"/>'; ?>
                   
                    </div>
                    <div class="left  " style="width:500px;float:left;height:250px;color:#47639E; " >
                        <h3>Mã TP:<span class="maugach" ><span id="matp">  <?= $sach->matp ?></span> </span>Tên sách:<span class="maugach" ><span id="tentp">  <?= $sach->tentp ?></span> </span></h3>
                        <hr>
                        <p>Nhà xuất bản:<span class="maugach"> <?= $nxb->get_tennxb() ?></span> </p>
                        <p>Tác giả <span class="maugach"><?= $tacgia->get_tentg() ?></span> </p>
                        <h3> Giá : <span class="maugach"><span id="giaban" ><?= $sach->giaban ?>
                            </span> VNĐ</span></h3>
                        <hr>
                        <p>Loại bìa: <span class="maugach">Bìa mềm</span> </p>
                        <p>Số trang: <span class="maugach"><?= $sach->sotrang ?> trang</span> </p>
                        <p> 
                            <label style="float:left;line-height:30px;" >  Số lượng: </label>
                            <input type="text" id="soluong" class="txtsoluong bor-soluong" value="1" />
                            <img id="soluongAdd"></img> <img id="soluongSubStract"></img> 
                            <input type="button" value="Thêm vào giỏ hàng" id="btn_mua" style="color:white;" /> 



                        </p>


                    </div>

                </div>
                <div class="wrapper-row">
                    <div class="muc line-height33">GIỚI THIỆU VỀ SÁCH </div>
                    <div class="ct_caption">
                        <?= $sach->caption ?> 
                    </div>

                </div>
            </div>
            <div class="right-27">
                <div class="wrapper-row">
                    <div class="muc line-height33"> THỂ LOẠI SÁCH</div>
                    <div>
                        <ul>
                            <?php
                            $dem = count($theloai);
                            //var_dump($dem)
                            for ($i = 0; $i < $dem; $i++) {
                                ?>
                                <li style="border-bottom: 1px dotted #ddd;" >  <a href="<?= base_url("index.php/?matl=".$theloai[$i]->MATL) ; ?>" class="theloai ">  <?= $theloai[$i]->TENTL; ?></a></li>

                                <?php
                            }
                            ?>
                        </ul>


                    </div>
                </div>
                <!--  end div the loai sach--->

                <!-- begin div sach cung tac gia -->
                <div class="wrapper-row">
                    <div class="muc line-height33"> SÁCH CÙNG TÁC GIẢ</div>
                    <div>
                        <ul>
                            <?php
                            foreach ($sachcungtg as $value) {
                                ?>
                            <li style="border-bottom: 1px dotted #ddd;" >  <a href="<?= base_url("index.php/product/detail?matp=". $value['MATP']); ?>" class="theloai ">  <?= $value['TENTP']; ?></a></li>

                                <?php
                            }
                            ?>
                        </ul>


                    </div>
                </div>
                <!-- end div sach cung tac gia -->
            </div>



        </div>
    </div>
</div>
</div>
</div>
